package org_enum

// 组织-组织状态
type orgOrganizationStatus int

var OrgOrganizationStatus orgOrganizationStatus

// 正常
func (c *orgOrganizationStatus) Normal() int {
	return 1
}

// 被删除
func (c *orgOrganizationStatus) Deleted() int {
	return 2
}

// 报停
func (c *orgOrganizationStatus) Stop() int {
	return 3
}

// 报废
func (c *orgOrganizationStatus) Scrap() int {
	return 4
}

func (c *orgOrganizationStatus) ToText(value int) string {
	switch value {

	case 1:
		return "正常"

	case 2:
		return "被删除"

	case 3:
		return "报停"

	case 4:
		return "报废"

	}
	return ""
}

func (c *orgOrganizationStatus) ToValue(text string) int {
	switch text {

	case "正常":
		return 1

	case "被删除":
		return 2

	case "报停":
		return 3

	case "报废":
		return 4

	}
	return 0
}
